# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=ruff-lsp
pkgver=0.0.41
pkgrel=0
pkgdesc="Language Server Protocol implementation for Ruff"
url="https://github.com/charliermarsh/ruff-lsp"
# ruff
arch="aarch64 x86_64"
license="MIT"
depends="
	py3-gls
	py3-lsprotocol
	py3-typing-extensions
	ruff
	"
makedepends="py3-gpep517 py3-installer py3-hatchling"
checkdepends="py3-lsp-jsonrpc py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/charliermarsh/ruff-lsp/archive/v$pkgver/ruff-lsp-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/ruff_lsp-$pkgver-py3-none-any.whl
}

sha512sums="
ad1f7a743863768708dfaa2050ab013c4a028b700ca809bdaa89973ebe1ba7173b7d0afdeb21115cf0aebf8427d199da2ee16d8ef57f1405b9570a18a4b0fc25  ruff-lsp-0.0.41.tar.gz
"
